﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="regist.aspx.cs" Inherits="messageboard.regist"
    MasterPageFile="~/Site1.Master" %>

<asp:Content ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript" src="js/jquery-1.7.2.min.js">
    $(document).ready(function () {
        $(".regist").animate({ right: "150px", opacity: "0.01" }, 1);
        $(".regist").animate({ right: "150px", opacity: "0.01" }, 100);
        $(".regist").animate({ right: "100px", opacity: "1" }, 500);
        $(".back").animate({ left: "100px", opacity: "0.01" }, 1);
        $(".back").animate({ left: "100px", opacity: "0.01" }, 100);
        $(".back").animate({ left: "50px", opacity: "1" }, 500);
            

        });
    </script>
</asp:Content>
<asp:Content runat="server" ContentPlaceHolderID="ContentPlaceHolder1">
    <div class="regist">
        <asp:Label ID="Label1" runat="server" Text="注册" Font-Size="250%"></asp:Label><br /><br />
        用户名<br />
        <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" Text="*"
            ErrorMessage="请输入用户名" ControlToValidate="TextBox1"></asp:RequiredFieldValidator>
        <br />
        密码<br />
        <asp:TextBox ID="TextBox2" runat="server" TextMode="Password"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" Text="*"
            ErrorMessage="请输入密码" ControlToValidate="TextBox2"></asp:RequiredFieldValidator>
        <br />
        确认密码<br />
        <asp:TextBox ID="TextBox5" runat="server" TextMode="Password"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" Text="*"
            ErrorMessage="请输入确认密码" ControlToValidate="TextBox5"></asp:RequiredFieldValidator>
        <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="TextBox2"
            ControlToValidate="TextBox5" ErrorMessage="两次输入密码不一致"></asp:CompareValidator>
        <br />
        email<br />
        <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" Text="*"
            ControlToValidate="TextBox3" ErrorMessage="请输入Email"></asp:RequiredFieldValidator>
        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="TextBox3"
            ErrorMessage="Email格式不正确" ValidationExpression="\S+@\S+\.\S+"></asp:RegularExpressionValidator>
        <br />
        年龄<br />
        <asp:TextBox ID="TextBox4" runat="server"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" Text="*"
            ControlToValidate="TextBox4" ErrorMessage="请输入年龄"></asp:RequiredFieldValidator>
        <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="TextBox4"
            ErrorMessage="年龄格式不正确" ValidationExpression="\d+\d"></asp:RegularExpressionValidator>
        <br />
        性别<br />
        <asp:ListBox ID="ListBox1" runat="server" Rows="1" Font-Names="Microsoft Yahei">
            <asp:ListItem>男</asp:ListItem>
            <asp:ListItem>女</asp:ListItem>
        </asp:ListBox>
        <br />
        头像<br />
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged">
                </asp:DropDownList>
                <br />
                <br />
                <asp:Image ID="Image1" runat="server" Height="80px" ImageUrl="~/images/face/(1).png"
                    Width="80px" />
            </ContentTemplate>
        </asp:UpdatePanel>
        <br />
        <asp:Button ID="Button1" runat="server" Text="注册" OnClick="Button1_Click" CssClass="button" />
        <br />
        <asp:ValidationSummary ID="ValidationSummary1" runat="server" />
    </div>
    <div class="back">
        <asp:Image ID="Image2" runat="server" ImageUrl="~/images/Metro-Back-48.png" onclick="document.location='Default.aspx'" />
    </div>

</asp:Content>
